package com.team.ai.mapper;

import com.team.ai.entity.AiList;
import com.team.ai.entity.Content;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AiListMapper {
    AiList selectByPrimaryKey(int id);
    int update(String text,int userId,int id);
    int insert(String title,String text,int userId,String pic);
    @Select("select * from ai where userid=#{userId}")
    List<AiList> selectList(int userId);
    AiList selectByTitleUserid(String title,int userId);
}
